Skip to content

feat: Add support for auto-starting dashboard with openCode and config loading#7

Merged
sleipi merged 1 commit into
sleipi:mainfrom
JTLMarggx:feat/auto-start-dashboard
May 11, 2026
Merged

feat: Add support for auto-starting dashboard with openCode and config loading#7
sleipi merged 1 commit into
sleipi:mainfrom
JTLMarggx:feat/auto-start-dashboard

Conversation

@JTLMarggx
Copy link
Copy Markdown
Contributor

This pull request introduces a new configuration system for the usage stats plugin, allowing users to customize dashboard behavior using a config file or environment variables. It also updates the plugin initialization to respect these configuration options when starting the dashboard server.

Configuration system and dashboard control:

  • Added a new UsageStatsConfig interface and a loadConfig function in src/config.ts to support loading configuration from JSON/JSONC files in the user's config directory, with fallback to environment variables for backward compatibility. This enables users to control dashboard enablement and port settings.
  • Updated the plugin initialization in src/plugin.ts to use the new configuration loader, and conditionally start the dashboard server based on the loaded configuration, ensuring the plugin will not fail if the dashboard cannot be started.

Dependency and import updates:

  • Added imports for the new configuration loader and dashboard creation utilities in src/plugin.ts, and updated repository-related imports to include garbage collection support.

@JTLMarggx JTLMarggx force-pushed the feat/auto-start-dashboard branch from 260af04 to 563bdca Compare May 11, 2026 13:50
@sleipi sleipi added the enhancement New feature or request label May 11, 2026
@sleipi sleipi merged commit e69b961 into sleipi:main May 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants